package com.cabal.auth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("cabal_auth_table")
@ApiModel(value="用户表", description="用户表")
public class CabalAuth {

    @TableId(value = "UserNum", type = IdType.AUTO)
    private Integer userNum;

    @TableField("ID")
    private String id;

    @TableField("Password")
    private byte[] password;

    @TableField("Login")
    private Integer loginState = 0;

    @TableField("LoginTime")
    private Date loginTime;

    @TableField("LogoutTime")
    private Date logoutTime;

    @TableField("AuthType")
    private Integer authType = 1;

    // 游戏时间
    @TableField("PlayTime")
    private Integer playTime;

    @TableField("IdentityNo")
    private String identityNo;

    @TableField("LoginEx")
    private Integer loginEx = 0 ;

    @TableField("LastIp")
    private String lastLoginIp;

    @TableField("AuthKey")
    private String authKey;

    @TableField("nation_Code")
    private Integer nationCode = 0;

    @TableField("createDate")
    private Date createDate;

    @TableField("Email")
    private String email;

    //@TableField("IP")
    //private String ip;

    @TableField("Question")
    private String question;

    @TableField("Answer")
    private String answer;

    // 登录次数
    @TableField("LoginCounter")
    private Integer loginCounter = 0;

    private Integer jh = 1;

    @TableField("QQ")
    private String qqNum;

    @TableField("Password2")
    private byte[] password2;

    @TableField("VIPLevel")
    private Integer vipLevel;

    private String name2;

    private Integer rwd = 0;

    private Integer ption = 0;

    @TableField("vip_special_effects_status")
    private Integer vipSpecialEffectsStatus;


}
